package com.fuful.domain;

public class Product {
    private int pid;
    private String pcode;
    private String pname;
    private PType ptid;
    private float pprice;
    private String addtime;

    public Product() {
    }

    public Product(int pid, String pcode, String pname, PType ptid, float pprice, String addtime) {
        this.pid = pid;
        this.pcode = pcode;
        this.pname = pname;
        this.ptid = ptid;
        this.pprice = pprice;
        this.addtime = addtime;
    }

    public Product(int pid, String pname, float pprice) {
        this.pid = pid;
        this.pname = pname;
        this.pprice = pprice;
    }

    public Product(int pid, float pprice) {
        this.pid = pid;
        this.pprice = pprice;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public String getPcode() {
        return pcode;
    }

    public void setPcode(String pcode) {
        this.pcode = pcode;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public PType getPtid() {
        return ptid;
    }

    public void setPtid(PType ptid) {
        this.ptid = ptid;
    }

    public float getPprice() {
        return pprice;
    }

    public void setPprice(float pprice) {
        this.pprice = pprice;
    }

    public String getAddtime() {
        return addtime;
    }

    public void setAddtime(String addtime) {
        this.addtime = addtime;
    }
}
